package com.lagou.util;

import java.util.HashMap;
import java.util.Map;

/**
 * @AUTHOR: yb.feng
 * @DATE: 2020/5/26 20:45
 * @DESC:
 */
public class BeanMapUtil {

    private static Map<String, Object> beanMap = new HashMap<>();

    public static void putBean(String beanName, Object bean){
        beanMap.put(beanName, bean);
    }

    public static Object getBean(String beanName){
        return beanMap.get(beanName);
    }
}
